#!/bin/bash
sudo mv /etc/hosts /etc/hosts.bak
touch hosts.tmp
sudo cp /etc/hosts.bak hosts.tmp
wget -O hosts.latest https://kelvin-mirex-svn.googlecode.com/svn/trunk/ipv4-hosts/hosts
python update.py
sudo mv hosts.tmp   /etc/hosts
rm hosts.latest
